package com.thinkit.bigdata.core.util;

import java.io.File;

/**
 * Created by root on 16-9-30.
 */
public class StringFmoatUtil {

    public static String PictureUrlSub(String pictureUrl) {
        int pos = pictureUrl.lastIndexOf(File.separator);
        String strs = pictureUrl.substring(pos+1, pictureUrl.length());
        return strs;
    }


    public static String[] StringSub(String str) {
        String[] strs = new String[2];
        if (str.lastIndexOf(".") != -1) {
            strs[0] = str.substring(0, str.lastIndexOf("."));
            strs[1] = str.substring(str.lastIndexOf(".") + 1, str.length());
        }
        return strs;
    }
}
